<?php
    $count = count($this->courses); 
    if(is_array($this->courses) && $count > 0) {
    $i = 0;
    foreach ($this->courses as $course):
?>
    <div class="newsHome">
        	<div class="imgNewsHome">
            	<img src="<?php echo $this->staticUrlCourse . $course['hash_folder'] . '/' . $course['image']?>"
            	     width="112" height="80" class="imgNewsHome" alt="<?php echo $course['content'];?>"/>
            	<a href="<?php echo $this->serverUrl() . $this->url(array('title_seo' => $course['seo_title'], 'id' => $course['id']), 'course_detail');?>" class="borderNewsHome"></a>
            </div>
            <div class="titleNewsHome">
            	<p><strong>
            	    <a href="<?php echo $this->serverUrl() . $this->url(array('title_seo' => $course['seo_title'], 'id' => $course['id']), 'course_detail');?>"><?php echo $course['content'];?></a>
            	    </strong>
            </div>
    </div> 
    <?php if(++$i%2 == 0 || $i == $count) {?> 
        <div class="clear"></div>
    <?php }?> 
    <?php endforeach;?>
<?php } else {?>
    <div> <?php echo $this->translate('not_found_course', $this->lang)?>! </div>
<?php }?>
<div class="clear"></div>
<div class="clear"></div>
<?php echo $this->paginationcontrol2($this->page, $this->coursetotalItem, $this->numRowPerPage, 'paginationajaxforsearchcourse.phtml', null, 1, $this->keySearch);?>
<div class="clear"></div>
